<?php

namespace paper\facade;


use paper\component\Facade;
use paper\db\Query;

//use paper\db\Connection;

///**
// * @method static Query name($table, $prefix = null)
// * @method static Query table($table)
// * @method static Query model(string $model)
// * @method static startTrans()
// * @method static rollback()
// * @method static commit()
// * @method static exec($sql, $data = [])
// * @method static inTransaction()
// */
class Db extends Facade
{
    /**
     * @param mixed ...$args
     * @return Query
     */
    static public function instance(...$args):Query
    {
        return static::createNew(Query::class, Connection::instance());
    }
}

